package pdn.sci.cs.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pdn.sci.cs.dao.ChildBankDao;
import pdn.sci.cs.entity.ChildBank;

@Service
public class ChildBankService {

	@Autowired private ChildBankDao childBankDao;

	public List<ChildBank> findAll() {
		return childBankDao.findAll();
	}

	public ChildBank findById(String id) {
		return childBankDao.findById(id);
	}

	public ChildBank save(ChildBank d) {
		return childBankDao.save(d);
	}

	public void update(ChildBank d) {
		childBankDao.update(d);
	}

	public void delete(String id) {
		childBankDao.deleteById(id);
	}

	public List<ChildBank>  findByChildId(String childId) {
		return childBankDao.findByChildId(childId);
	}

}
